package com.bxy.dzsc.service.impl;

import com.bxy.dzsc.dao.ShoppingcarDao;
import com.bxy.dzsc.domain.Shoppingcar;
import com.bxy.dzsc.service.ShoppingcarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ShoppingcarServiceImpl implements ShoppingcarService {
    @Autowired
    private ShoppingcarDao dao;
    @Override
    public void insertcar(Shoppingcar shoppingcar) {
        dao.insertcar(shoppingcar);
    }

    @Override
    public void deletecar(Integer cid) {
        dao.deletecar(cid);
    }

    @Override
    public void updatecar(Shoppingcar shoppingcar) {
        dao.updatecar(shoppingcar);
    }

    @Override
    public List<Shoppingcar> findall() {
        return dao.findall();
    }

    @Override
    public List<Shoppingcar> findbyuid(Integer uid) {
        return dao.findbyuid(uid);
    }

    @Override
    public Shoppingcar findcid(Integer cid) {
        return dao.findcid(cid);
    }
}
